<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../js/jquery-1.11.3.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			function bigger(){
				var width = $("img").width();
				var newWidth = width + 5;
				var width1 = $("img").width(newWidth);
				
			}
			function smaller(){
				var width = $("img").width();
				var newWidth = width - 5;
				var width1 = $("img").width(newWidth);
			}
		</script>
		<style type="text/css">
			img{
				width: 50px;
			}
		</style>
	</head>
	<body>
		<div><img src="../img/images/1d.jpg" /></div>
		<input type="button" value="放大" onclick="bigger()" id="btn1Id"/>&nbsp;
		<input type="button" value="缩小" onclick="smaller()" id="btn2Id"/>
	</body>
</html>
